package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.entity.SmartReservation;
import com.ruoyi.system.domain.entity.SmartResultReservation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * SmartReservationMapper
 *车辆预约
 * @author life.
 * @date 2025/3/25
 */
@Mapper
public interface SmartReservationMapper {


    /** 更新预约信息（含新字段） */
    int updateReservation(SmartResultReservation reservation);


    /** 根据 ID 查询预约信息（联表查询停车订单） */
    List<SmartReservation> selectReservationWithOrderByUserName(  @Param("scUserName") String scUserName,
                                                                  @Param("reservationDate") Date reservationDate,
                                                                  @Param("reservationStatus") Integer reservationStatus);
}
